package com.transaction.dao;


import com.transaction.domain.ReturnOrder;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrdDao {

    @Insert("insert into ord(uid,gid) values(#{uid},#{gid})")
    Integer insertOrd(@Param("uid") String uid, @Param("gid") String gid);

    @Select("select * from ord where uid=#{uid}")
    List<ReturnOrder> findOrderListByUid(String uid);

}
